package cpr.command;

import cpr.DefaultCommandHandler;
import cpr.data.WorksetItem;

public class CmdWorksetRemove extends DefaultCommandHandler {
	public CmdWorksetRemove() {
		super("ws-remove");
	}
	public void execute(String[] params) throws Exception {
				int clusterNumber = Integer.parseInt(getParameter(params, 1));
				WorksetItem item = getCommandContext().getContext().getCurrentWorksetContext().getWorksetItemAt(clusterNumber);
				getCommandContext().getContext().getCurrentWorksetContext().removeWorkSetItem(item);	
				getCommandContext().executeInCurrentThread("ws");
	}
}